Introduction to Flash Remoting with .NET
Table of Contents
Overview of .NET with Flash Remoting
Flash Remoting adds to Flash MX Professional 2004's ability to read XML and web services with powerful options for connecting to .NET business logic: assemblies (DLLs), ASP.NET pages, and XML web services. In this article, I will explain the advantages and disadvantages of each implementation and develop an example application using an ASP.NET page.
A .NET assembly is a compiled DLL. Each DLL includes one or several classes, each with methods and properties. When Flash Remoting calls an assembly directly, it can call any of its methods directly and manipulate the returned data as native Flash objects. An advantage of an assembly is it allows a Flash interface to call any of its multiple methods and is much quicker than an XML web service.
ASP.NET pages provide features similar to those provided by an assembly, but instead of comprising multiple classes, methods, and properties, each ASP.NET page works as one complex method. When called by Flash Remoting, the ASP.NET page can access properties passed during the call and return data based on that information. An ASP.NET page is similar in speed to an assembly and quicker than a web service or XML.
Web services let Flash Remoting access several properties and methods over a distributed network. This solution is perfect for syndicating business logic over the web. The main problem with a web service is that you must send a request and response over the Internet. When using web services with Flash Remoting and .NET, your Flash Remoting application will dynamically create a compiled proxy assembly to communicate with the web service or XML file. For more information on XML and web services with .NET, read Consuming Amazon with Flash Remoting.